<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script type="text/javascript">
function validate()
{

if(form.t1.value=="")
{
alert("Car code is Required");
form.t1.focus();
form.t1.value="";
return false;
}

 if(form.t2.value=="")
{
alert("Car model type is Required");
form.t2.focus();
form.t2.value="";
return false;
}  
if(form.t3.value=="")
{
alert("Cost of car is Required");
form.t3.focus();
form.t3.value="";
return false;
}  
var a=/^[0-9]+$/;
if(!form.t3.value.match(a))
{
alert("enter only numbers");
form.t3.focus();
form.t3.value="";
return false;
}
 if(form.t4.value=="")
{
alert("Used life time is Required");
form.t4.focus();
form.t4.value="";
return false;
}  
 if(form.t5.value=="")
{
alert("Contact person name is Required");
form.t5.focus();
form.t5.value="";
return false;
}
var a=/^[a-zA-Z]+$/;
if(!form.t5.value.match(a))
{
alert("enter only charactor");
form.t5.focus();
form.t5.value="";
return false;
}

 if(form.t6.value=="")
{
alert("Contact number is Required");
form.t6.focus();
form.t6.value="";
return false;
}

var a=/^[0-9]+$/;
if(!form.t6.value.match(a))
{
alert("enter only numbers");
form.t6.focus();
form.t6.value="";
return false;
}

 if(form.t7.value=="")
{
alert("Address is Required");
form.t7.focus();
form.t7.value="";
return false;
}  
 if(form.t8.value=="")
{
alert("Discription is Required");
form.t8.focus();
form.t8.value="";
return false;
}  


return true;
}
</script>

<TITLE></TITLE>
</HEAD>
<BODY background="images/17.jpg">
<form action="wheels.jsp" method="post" name="form" onsubmit="return validate()">
<P>&nbsp;</P>
<P align=center><FONT 
size=4><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<FONT color=yellow size=4>Wel come To Wheels Used Cars</FONT></STRONG></FONT></P>
<P align=center>
<TABLE border=0 cellPadding=1 cellSpacing=1 width="75%">
  
  <TR>
    <TD>
      <P align=left>Car Code</P></TD>
    <TD><INPUT id=text2 name=t1></TD></TR>
  <TR>
    <TD>
      <P align=left>Car Model Type</P></TD>
    <TD><INPUT id=text3 name=t2></TD></TR>
  
  <TR>
    <TD>
      <P align=left>Cost of Car</P></TD>
    <TD><INPUT id=text1 name=t3></TD></TR>
  <TR>
    <TD>
      <P align=left>Used Life Time So For</P></TD>
    <TD><INPUT id=text6 name=t4></TD></TR>
  <TR>
    <TD>
      <P align=left>Contact Person Name</P></TD>
    <TD><INPUT id=text7 name=t5></TD></TR>
  <TR>
    <TD>
      <P align=left>Contact Person Number</P></TD>
    <TD><INPUT id=text8 name=t6></TD></TR>
  <TR>
    <TD>Contact Address</TD>
    <TD><INPUT id=text9 name=t7></TD></TR>
  <TR>
    <TD> Discription</TD>
    <TD><TEXTAREA id=TEXTAREA1 name=t8>
</TEXTAREA></TD></TR>
  <TR>
    <TD></TD>
    <TD></TD></TR>
  <TR>
    <TD></TD>
    <TD>&nbsp;&nbsp;&nbsp;<INPUT id=submit1 name=submit1 type=submit value="  Add  ">&nbsp;&nbsp;&nbsp; 
<INPUT id=reset1 name=reset1 style="LEFT: 103px; TOP: 1px" type=reset value=" Clear ">&nbsp;</TD></TR>
  <TR>
    <TD></TD>
    <TD></TD></TR></TABLE></P>
</form>

</BODY>
</HTML>
